package com.ps.controller.sys;

import com.ps.model.vo.R;
import com.ps.service.sys.SysResourceService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("system/resource")
public class ResourceController {
    @Resource
    private SysResourceService service;

    @GetMapping("getAll")
    public R getAll() {
        return R.success(service.getAll());
    }

}
